.overflowtxt{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.bg{
  width: 200px;
  height: 100px;
  background-color: pink;
}
li {
  list-style-type: none;
  .overflowtxt;
  .bg;
}

